import http from '../utils/http/http.js'

//获取指数
export const info = () =>
  http.get('/admin-api/erp/price-trend/categoryDataPage')
//登录获取token
export const logIn = (code) => http.get(`/produce/farmers/login?code=${code}`)
//获取项目
export const project = (code) =>
  http.get(`/produce/project-plot/farmer-projects`)

export const allIndexData = () => {
  return http.all(info())
}
